package com.lanou3g.zjl.chating.home.friends;

/**
 * Created by dllo on 15/11/19.
 */
public class FriendsInfo {

    private String avatar;//头像
    private String name;//好友名
    private String sortLetter;//显示数据拼音的首字母

    public FriendsInfo() {
    }

    public FriendsInfo(String avatar, String name, String sortLetter) {
        this.avatar = avatar;
        this.name = name;
        this.sortLetter = sortLetter;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSortLetter() {
        return sortLetter;
    }

    public void setSortLetter(String sortLetter) {
        this.sortLetter = sortLetter;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof FriendsInfo){
            FriendsInfo friendsInfo = (FriendsInfo) o;
            return name.equals(friendsInfo.getName());
        }
        return false;
    }
}
